import { createRouter, createWebHistory } from 'vue-router'
import Layout from '@/layout/layout.vue'





const routes = [
  {
    path: "/",
    component: Layout,
    children: [
      {
        path: "/",
        component: () => import("@/views/home/index.vue")
      },

      {
        path: "user",
        component: () => import("@/views/user/index.vue")
      }
    ],
  },
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router
